package com.skyolder.taskman.ast;

import com.skyolder.taskman.word.Token;

public class GrammarError extends Exception{
	/**
	 * 
	 */
	private static final long serialVersionUID = -1679240174850379839L;
	Token token;
	public GrammarError(Token t) {
		if(t==null){
			token=Token.NULL;
		}
		token=t;
	}
	public String toString(){
		return "Error at "+token.toString();
	}
}
